package br.com.transportsis;

import br.com.transportsis.services.TransitoService;
import br.com.transportsis.utils.ArquivoXMLutils;
import context.arch.enactor.Enactor;
import context.arch.enactor.EnactorXmlParser;
import context.arch.widget.Widget;
import context.arch.widget.WidgetXmlParser;

public class Main {
	protected Widget ruaWidget;
    protected Widget carroWidget;
    
    protected TransitoService transitoService;
    
    protected Enactor enactor;
    
    public Main(){
    	ArquivoXMLutils.CriaXMLS();
        
        ruaWidget = WidgetXmlParser.createWidget("xmls/widget-rua.xml");
        
        carroWidget = WidgetXmlParser.createWidget("xmls/widget-carro.xml");
        
        transitoService = new TransitoService(carroWidget);
        carroWidget.addService(transitoService);
        
        enactor = EnactorXmlParser.createEnactor(ArquivoXMLutils.xmls+"/enactor-car.xml");
    	
    }
    
    public static void main(String args[]){
    	Main teste = new Main();
    	
    	
    }

}
